SP-874: Add single package import command#369
Merged
Zgjim Haziri (ZgjimHaziri) merged 3 commits intoJun 9, 2026
Conversation
Adds the CLI counterpart to the new pacman single-package import API. The command lives under a new 'config package' subgroup, separate from the existing batch 'config import', because the two use different, non-interchangeable archive formats. Supports importing from a package zip (--file) or a directory (--directory, flat-zipped by the CLI), with --overwrite and optional --json output. Config docs and CLI help updated to frame the batch commands as their own batch-specific set. Includes-AI-Code: true Co-authored-by: Cursor <cursoragent@cursor.com>
…fixes) Mark injected members as readonly and use node: import prefixes for built-in modules. The single-package-import test mocks node:fs explicitly so the temp file cleanup is intercepted (the global fs mock only covers the bare specifier). Includes-AI-Code: true Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
Meris Nici (promeris)
previously approved these changes
Jun 8, 2026
- Rename "batch archive" to "batch artifact" in config-commands docs - Describe overwritten, undeclared variable assignments as "ignored" - Clarify the 'config package' group description (single package) Includes-AI-Code: true Co-authored-by: Cursor <cursoragent@cursor.com>
|
Buqeta (Buqeta)
approved these changes
Jun 9, 2026
Kastriot Salihu (ksalihu)
approved these changes
Jun 9, 2026
Zgjim Haziri (ZgjimHaziri)
added a commit
that referenced
this pull request
Jun 9, 2026
Resolve conflicts after base PR #369 (SP-874) was squash-merged into main. The branch already carried SP-874's content from the earlier stack, so the reframed t2tc structure is kept in config-commands.md, module.ts and module.spec.ts; main contributes no net file changes. Includes-AI-Code: true Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Adds a new
config package importcommand for importing a single package — the CLI counterpart to the new pacman single-package import API (POST /pacman/api/core/staging/packages/import-file).How it was done:
config packagesubgroup instead of overloading the existing batchconfig import. The two use different, non-interchangeable archive formats (the batch archive has nested per-package zips + manifest; the single-package format is a flatpackage.json+nodes/), so keeping them separate avoids confusing the workflows.--file) or a directory (--directory, which the CLI flat-zips before upload), with an--overwriteflag and optional--jsonoutput. A 4 GB uncompressed guard is enforced on the archive.Relevant links
Checklist
Includes-AI-Code: true
Made with Cursor